<template>
	<view class="page" :style="{height:windowHeight+'px'}">		
		<view class="head">
			<!-- <text class="return" @click="gotoPage('/pages/user/index/index')"> < </text> -->
			<image src="../../../static/jiaotou1.png" class="return" @click="gotoPage('/pages/user/index/index')"></image>
			<text>账户管理</text>
		</view>
		<view class="null"></view>
		<view class="list-wrap">
			<view class="list-item" @click="gotoPage('/pages/user/my-account/bank-card/bank-card')">
				<view class="item-l">
					<image src="../../../static/app/account1.png" mode=""></image>
					<text>银行卡管理</text>
				</view>
				<view class="item-r">
					<text class="icon iconfont icon-jiantou"></text>
				</view>
			</view>
			<view class="list-item" @click="gotoPage('/pages/user/my-account/withdraw/withdraw')">
				<view class="item-l">
					<image src="../../../static/app/account2.png" mode=""></image>
					<text>提现</text>
				</view>
				<view class="item-r">
					<text class="icon iconfont icon-jiantou"></text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				windowHeight:'',
			};
		},
		onLoad() {
			uni.getSystemInfo({
				success: (res) => {
					this.windowHeight = res.windowHeight;
				}
			});
		},
		methods:{
			gotoPage(path) {
				let self = this;
				if(path.startsWith('/')){
					uni.navigateTo({
						url: path
					});
				}else{
					self[path]();
				}
			},
		}
	}
</script>

<style lang="scss">
	@import 'my-account.scss';
</style>
